package com.quxiu.system.service;

import com.quxiu.common.core.constant.CacheConstants;
import com.quxiu.common.core.constant.Constants;
import com.quxiu.common.core.exception.ServiceException;
import com.quxiu.common.redis.service.RedisService;
import com.quxiu.common.security.utils.SecurityUtils;
import com.quxiu.system.api.domain.SysUser;
import com.quxiu.system.service.impl.SysRecordLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * 登录密码方法
 *
 * @author quxiu
 */
public interface ISysPasswordService {

    void validate(SysUser user, String password);

    boolean matches(SysUser user, String rawPassword);

    void clearLoginRecordCache(String loginName);
}
